package com.caiyigo.baihua.dto;

import java.util.Arrays;
import java.util.List;

import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;

import com.caiyigo.baihua.model.SystemUser;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @author caihaihui
 * 
 */
public class UserDto extends SystemUser {
	public static final class FileConstant {
		public final static String ID = "id";
		public final static String STATUS = "status";
		public final static String NAME = "name";
		public final static String EMAIL = "email";
		public final static String ROLEIDS="roleids";
	}

	private String role_ids;
	private String role_names;
	private String roleid;

	/**
	 * @return the roleid
	 */
	public String getRoleid() {
		return roleid;
	}

	/**
	 * @param roleid
	 *            the roleid to set
	 */
	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	private List<String> roleids;// 表单查询，逗号隔开,分割后自行组装

	/**
	 * @return the roleids
	 */
	@JsonIgnore
	public List<String> getRoleids() {
		
		return roleids;
	}

	/**
	 * @param roleids
	 *            the roleids to set
	 */
	public void setRoleids(List<String> roleids) {
		this.roleids = roleids;

	}

	/**
	 * @return the role_ids
	 */
	public String getRole_ids() {
		return role_ids;
	}

	/**
	 * @param role_ids
	 *            the role_ids to set
	 */
	public void setRole_ids(String role_ids) {
		this.role_ids = role_ids;
	}

	/**
	 * @return the role_names
	 */
	public String getRole_names() {
		return role_names;
	}

	/**
	 * @param role_names
	 *            the role_names to set
	 */
	public void setRole_names(String role_names) {
		this.role_names = role_names;
	}

}
